<template>
  <el-icon :size="number">
    <Comps />
  </el-icon>
</template>

<script lang="ts" setup>
import { Component, defineProps } from "vue";
import * as Icons from "@element-plus/icons-vue";
const porps = defineProps({
  name: {
    type: String,
    default: "Help",
  },
  number: {
    type: Number,
    default: 25,
  },
});
const Comps = Icons[porps.name as string] as Component;
</script>

<style lang="scss" scoped></style>
